<template>
  <div class="nav-page">
    <div class="logo">
      <img
        src="../../static/icon/logo.png"
        alt=""
      >
    </div>
    <el-menu
      :default-active="activeIndex2"
      class="el-menu-demo"
      mode="horizontal"
      @select="handleSelect"
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b"
      id="nav_bar"
    >
      <el-menu-item index="1">处理中心</el-menu-item>
      <el-menu-item index="2">处理中心</el-menu-item>
      <el-menu-item
        index="3"
        disabled
      >消息中心</el-menu-item>
      <el-menu-item index="4"><a
          href="https://www.ele.me"
          target="_blank"
        >订单管理</a></el-menu-item>
    </el-menu>
  </div>
</template>
<script>
export default {
  data() {
    return {
      activeIndex: "1",
      activeIndex2: "1"
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    }
  }
};
</script>
<style scoped>
.nav-page {
  background-color: rgb(84, 92, 100);
}
#nav_bar {
  width: 500px;
  margin: 0 auto;
  height: 98px;
}
#nav_bar * {
  height: 98px;
  line-height: 98px;
}
.logo {
  height: 98px;
  position: absolute;
}
.logo img {
  height: 100%;
}
</style>
